package com.sdgakj.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name="f_feedback_review")
public class FeedbackReview extends IdEntity {
	
	private static final long serialVersionUID = 1L;
	
	/** 反馈*/
	private Feedback feedback;
	/** 审核人*/
	private Long userId;
	/** 处理意见*/
	private String review;
	/** 创建时间*/
	private Date createTime;
 	
	@ManyToOne()
    @JoinColumn(name = "feedback_id")
	public Feedback getFeedback() {
		return feedback;
	}
	public void setFeedback(Feedback feedback) {
		this.feedback = feedback;
	}

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getReview() {
		return review;
	}
	public void setReview(String review) {
		this.review = review;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	
}
